﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _8Group.MES.Model.PRO生产管理
{
    /// <summary>
    /// 流转单表
    /// </summary>
    public class Pro_Trans_Order : Entity<int>
    {

        /// <summary>
        /// 流转单编号
        /// </summary>
        public int TransOrderCode { get; set; }

        /// <summary>
        /// 任务 ID
        /// </summary>
        public int TaskId { get; set; }

        /// <summary>
        /// 任务编号
        /// </summary>
        public string? TaskCode { get; set; }

        /// <summary>
        /// 工作站 ID
        /// </summary>
        public int WorkstationId { get; set; }

        /// <summary>
        /// 工作站编号
        /// </summary>
        public string? WorkstationCode { get; set; }

        /// <summary>
        /// 工作站名称
        /// </summary>
        public string? WorkstationName { get; set; }

        /// <summary>
        /// 工序 ID
        /// </summary>
        public int ProcessId { get; set; }

        /// <summary>
        /// 工序编号
        /// </summary>
        public string? ProcessCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        public string? ProcessName { get; set; }

        /// <summary>
        /// 生产工单 ID
        /// </summary>
        public int WorkorderId { get; set; }

        /// <summary>
        /// 生产工单编号
        /// </summary>
        public string? WorkorderCode { get; set; }

        /// <summary>
        /// 生产工单名称
        /// </summary>
        public string? WorkorderName { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string? BatchCode { get; set; }

        /// <summary>
        /// 物资 ID
        /// </summary>
        public int ItemId { get; set; }

        /// <summary>
        /// 物资编码
        /// </summary>
        public string? ItemCode { get; set; }

        /// <summary>
        /// 物资名称
        /// </summary>
        public string? ItemName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string? Specification { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string? UnitOfMeasure { get; set; }

        /// <summary>
        /// 赋码地址
        /// </summary>
        public string? BarcodeUrl { get; set; }

        /// <summary>
        /// 流转数量
        /// </summary>
        public double QuantityTransfered { get; set; }

        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime? ProduceDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }


        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpDateTime { get; set; }
    }
}
